package com.zackeus.sipservice.constant;

import androidx.annotation.IntDef;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 捕获设备
 * @name: CaptureDevice
 * @author: zz
 * @date: 2022/9/15
 */
public final class CaptureDevice {

    /* 前置摄像头 */
    public static final int FRONT_CAMERA = 1;
    /* 后置摄像头 */
    public static final int BACK_CAMERA = 2;

    @Target({ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER})
    @Retention(RetentionPolicy.SOURCE)
    @IntDef({FRONT_CAMERA, BACK_CAMERA})
    public @interface Unit {}
}
